<?php 
function incrementstream($id){
	global $db;
dbconnect();
	$sql2 = "update stream_stm SET viewers = viewers + 1, date_stm = NOW() where u_stm = '$id'";
$db->query($sql2);
		
	
	}